<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
                xmlns:h="http://xmlns.jcp.org/jsf/html"
                xmlns:f="http://xmlns.jcp.org/jsf/core"
                xmlns:p="http://primefaces.org/ui"
                template="/WEB-INF/template.xhtml">

    <ui:define name="head">
        <style>
            .ui-diagram-element {
                border: 0.1em dotted #d4e06b;
                width: 14em;
                height: 4em;
                line-height: 4em;
                text-align: center;
            }
        </style>
    </ui:define>

    <ui:define name="title">
        Diagram <span class="subitem">Basic</span>
    </ui:define>

    <ui:define name="description">
        Diagram is generic component to create visual elements and connect them on a web page. SVG is used on modern browsers and VML on IE 8 and below. Component
        is highly flexible in terms of api, events and theming.
    </ui:define>

    <ui:param name="documentationLink" value="/components/diagram"/>
    <ui:param name="widgetLink" value="Diagram-1"/>

    <ui:define name="implementation">

        <div class="card">
            <p:diagram value="#{diagramBasicView.model}" style="height:400px" styleClass="ui-widget-content"/>
        </div>

    </ui:define>

</ui:composition>
